import request from '@/utils/request'

// 查询提现记录
export function managementloanDatalist(query) {
  return request({
    url: '/business/customer/loanlist/',
    method: 'get',
    params: query
  })
}

// 查询客户详情
export function getManagementloanDataList(custNo) {
  return request({
  /*/customer/detail/{custNo}*/
    url: '/business/customer/customer/detail/' + custNo,
    method: 'get'
  })
}

// 查询提现详情
export function getLoanIouDetail(id) {
  return request({
    url: '/business/customer/loanIou/detail/' + id,
    method: 'get'
  })
}

// kyc列表
export function KYCListFun(query) {
  return request({
    url: '/business/customer/findlist/bycustno/',
    method: 'get',
    params: query
  })
  // return request({
  //   url: '/business/customer/findlist/bycustno/' + query,
  //   method: 'get'
  // })
}

// Get limit列表
export function GetLimitListFun(query) {
  return request({
    url: '/business/customer/findcreditlist/bycustno/',
    method: 'get',
    params: query
  })
}

// Account Bank列表
export function AccountBankListFun(query) {
  return request({
    url: '/business/customer/listbank',
    method: 'get',
    params: query
  })
}

// ATM card列表
export function ATMCardListFun(query) {
  return request({
    url: '/business/customer/findbanklistlog',
    method: 'get',
    params: query
  })
}

// LoanHistoryStatus列表
export function LoanHistoryListFun(query) {
  return request({
    url: '/business/customer/loanlist',
    method: 'get',
    params: query
  })
}
export function WalletHistoryListFun(query) {
  return request({
    url: '/business/customer/walletList',
    method: 'get',
    params: query
  })
}

// 借据详情
export function LoanHistoryListdetailFun(query) {
  // return request({
  //   url: '/business/customer/loanIou/detail',
  //   method: 'get',
  //   params: query
  // })
  return request({
    url: '/business/customer/loanIou/detail/' + query,
    method: 'get'
  })
}

//钱包明细
export function walletListdetailFun(query) {
  return request({
    url: '/business/customer/walletLisDetail',
    method: 'get',
    params: query
  })
}

//延期订单
export function LoanDeferredOrderFun(query) {
  return request({
    url: '/business/customer/loanDeferredOrderFunList',
    method: 'get',
    params: query
  })
}

// 还款详情
export function LoanHistoryViewFun(query) {
  return request({
    url: '/business/customer/findrepaymentorderbyloanserialno/' + query,
    method: 'get'
  })
}

//钱包详情
export function walletViewFun(query) {
  return request({
    url: '/business/customer/walletInfo',
    method: 'get',
    params: query
  })
}

//延期产品Offer
export function DeferredInfoFun(query) {
  return request({
    url: '/business/customer/deferredInfo',
    method: 'get',
    params: query
  })
}

// 发送还款短信
export function sendcollectsmsFun(query) {
  return request({
    url: '/business/customer/sendcollectsms',
    method: 'get',
    params: query
  })
}

// 获取表格是否有数据是否置灰
export function customerFindcount(query) {
  return request({
    url: '/business/customer/findcount/' + query,
    method: 'get'
  })
}
